home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 October / october_2001.iso / Site Building / Html Notes 1.19 / HTMNOTES.EXE / file0017.bin < prev    next >
Encoding:
Text File  |  2001-08-18  |  906 b   |  36 lines

  1. <SCRIPT LANGUAGE="JavaScript">
  2. <!-- // HIDE FROM OLD BROWSERS
  3.  
  4. // THIS WILL WRITE OUT THE LAST MODIFIED DATE
  5. // YOU DO NOT NEED TO CHANGE ANYTHING HERE
  6.  
  7. function makeArray(arraySize) {
  8.      this.length = arraySize
  9.      return this
  10. }
  11.  
  12. monthNames = new makeArray(12)
  13. monthNames[1] = "January"
  14. monthNames[2] = "February"
  15. monthNames[3] = "March"
  16. monthNames[4] = "April"
  17. monthNames[5] = "May"
  18. monthNames[6] = "June"
  19. monthNames[7] = "July"
  20. monthNames[8] = "August"
  21. monthNames[9] = "September"
  22. monthNames[10] = "October"
  23. monthNames[11] = "November"
  24. monthNames[12] = "December"
  25.  
  26. updated = new Date(document.lastModified)
  27. theMonth = monthNames[updated.getMonth() + 1]
  28. theDate = updated.getDate()
  29. theYear = updated.getYear()
  30. if ( theYear < 98 ) {theYear = theYear + 2000 } else {theYear = theYear + 1900 }; 
  31.  
  32. document.write("Last modified: " + theDate +  "-" + theMonth + "-" + theYear)
  33.  
  34. // END HIDING -->
  35. </SCRIPT>
  36.